package com.wnxy.mallserver.vo.goods;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsVo implements Serializable {
    public static final long serialVersionUID = 1L;
    /**用户id*/
    private Integer uid;
    /**商品id*/
    private Integer id;
    /**商品名称*/
    private String name;
    /**商品单价*/
    private BigDecimal price;//涉及金钱的，都用BigDecimal
    /**商品图片*/
    private String image;

    public GoodsVo(Integer id, String name, BigDecimal price, String image) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.image = image;
    }
}
